package com.baizhi;

import java.io.Serializable;
import java.util.List;

public class Category implements Serializable{
	private int cid;
	private int pid;
	private String cname;
	private Category cate;
    private List<Category> category;
    private Integer cateSum;

	@Override
	public String toString() {
		return "Category{" +
				"cid=" + cid +
				", pid=" + pid +
				", cname='" + cname + '\'' +
				", cate=" + cate +
				", category=" + category +
				", cateSum=" + cateSum +
				'}';
	}

	public Integer getCateSum() {
		return cateSum;
	}

	public void setCateSum(Integer cateSum) {
		this.cateSum = cateSum;
	}

	public Category getCate() {
		return cate;
	}

	public void setCate(Category cate) {
		this.cate = cate;
	}

	public Category(int cid, int pid, String cname, Category cate, List<Category> category) {
		this.cid = cid;
		this.pid = pid;
		this.cname = cname;
		this.cate = cate;
		this.category = category;
	}

	public List<Category> getCategory() {
		return category;
	}

	public void setCategory(List<Category> category) {
		this.category = category;
	}

	public Category() {
	}

	public Category(int cid, int pid, String cname, List<Category> category) {
		this.cid = cid;
		this.pid = pid;
		this.cname = cname;
		this.category = category;
	}

	public int getCid() {
		return cid;
	}

	public void setCid(int cid) {
		this.cid = cid;
	}

	public int getPid() {
		return pid;
	}

	public void setPid(int pid) {
		this.pid = pid;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}
}
